<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>类的本质</title>
</head>
<body>
    <script>
        class Star {

        }
        console.log(typeof Star); //function 函数
        Star.prototype.sing = function () {
            console.log("唱歌");
        }
        console.log(Star.prototype); //有sing这个方法
        var star = new Star();
        console.log(star.__proto__); //构造器指向了 class Star
    </script>
</body>
</html>